<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var product = {
      name: "iPhone 13 Pro Max",
      desc: "对iPhone的描述信息",
      price: 8888,
      callPhone: function (phoneNum) { console.log(`打电话给某人:${phoneNum}`) },
      playGame: function (gameName) { console.log(`玩${gameName}游戏`) },
    }
  </script>
</body>

</html>